home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / Chip 11-96.iso / workshop / howto / news < prev    next >
Text File  |  1996-05-25  |  31KB  |  821 lines

  1.   The Linux News HOWTO
  2.   Vince Skahan, <vince@victrola.wa.com>
  3.   v1.13, 6 Aug 1994
  4.  
  5.   This document describes the setup and care+feeding of USENET News
  6.   under Linux.  You need to read this if you plan to post or read USENET
  7.   news either locally on your site or between your site and other sites.
  8.   You probably do *not* need to read this document if don't plan to pro-
  9.   vide USENET news as a feature of your system.
  10.  
  11.   1.  Introduction
  12.  
  13.   The intent of this document is to answer some of the questions and
  14.   comments that appear to meet the definition of "frequently asked
  15.   questions" about USENET News software under Linux in general, and the
  16.   version in the Linux SLS distribution in particular.
  17.  
  18.   This document and the corresponding Mail and UUCP "HOWTO" documents
  19.   collectively supersede the UUCP-NEWS-MAIL-FAQ that has previously been
  20.   posted to comp.os.linux.announce.
  21.  
  22.  
  23.   1.1.  New versions of this document
  24.  
  25.   New versions of this document will be periodically posted to
  26.   comp.os.linux.announce, comp.answers, and news.answers.  They will
  27.   also be added to the various anonymous ftp sites who archive such
  28.   information including sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  29.  
  30.  
  31.   1.2.  Feedback
  32.  
  33.   I am interested in any feedback, positive or negative, regarding the
  34.   content of this document via e-mail.  Definitely contact me if you
  35.   find errors or obvious omissions.
  36.  
  37.   I read, but do not necessarily respond to, all e-mail I receive.
  38.   Requests for enhancements will be considered and acted upon based on
  39.   that day's combination of available time, merit of the request, and
  40.   daily blood pressure :-)
  41.  
  42.   Flames will quietly go to /dev/null so don't bother.
  43.  
  44.   Feedback concerning the actual format of the document should go to the
  45.   HOWTO coordinator - Matt Welsh (mdw@sunsite.unc.edu).
  46.  
  47.  
  48.   1.3.  Copyright Information
  49.  
  50.   The News-HOWTO is copyrighted (c)1994 Vince Skahan.
  51.  
  52.   A verbatim copy may be reproduced or distributed in any medium
  53.   physical or electronic without permission of the author.  Translations
  54.   are similarly permitted without express permission if it includes a
  55.   notice on who translated it.
  56.  
  57.   Short quotes may be used without prior consent by the author.
  58.   Derivative work and partial distributions of the News-HOWTO must be
  59.   accompanied with either a verbatim copy of this file or a pointer to
  60.   the verbatim copy.
  61.  
  62.   Commercial redistribution is allowed and encouraged; however, the
  63.   author would like to be notified of any such distributions.
  64.  
  65.   In short, we wish to promote dissemination of this information through
  66.   as many channels as possible. However, we do wish to retain copyright
  67.   on the HOWTO documents, and would like to be notified of any plans to
  68.   redistribute the HOWTOs.
  69.  
  70.   We further want that ALL information provided in the HOWTOS is
  71.   disseminated.  If you have questions, please contact Matt Welsh, the
  72.   Linux HOWTO coordinator, at mdw@sunsite.unc.edu, or +1 607 256 7372.
  73.  
  74.  
  75.   1.4.  Standard Disclaimer
  76.  
  77.   Of course, I disavow any potential liability for the contents of this
  78.   document.  Use of the concepts, examples, and/or other content of this
  79.   document is entirely at your own risk.
  80.  
  81.  
  82.   1.5.  Other sources of information
  83.  
  84.  
  85.   1.5.1.  USENET
  86.  
  87.  
  88.      news.admin.misc         General topics of network news administration.
  89.      news.admin.policy       Policy issues of USENET.
  90.      news.admin.technical    Maintaining network news. (Moderated)
  91.      news.software.b         Discussion about B-news-compatible software.
  92.      news.software.nn        Discussion about the "nn" news reader package.
  93.      news.software.nntp      The Network News Transfer Protocol.
  94.      news.software.readers   Software used to read network news.
  95.      news.sysadmin           Comments directed to system administrators.
  96.      news.announce.newusers  Explanatory postings for new users. (Moderated)
  97.      news.newusers.questions Q & A for users new to the Usenet.
  98.  
  99.  
  100.  
  101.  
  102.   1.5.2.  Books
  103.  
  104.   The following is a non-inclusive set of books that will help
  105.  
  106.  
  107.   o  "Managing UUCP and USENET" published by O'Reilly+Associates is in
  108.      my opinion the best book out there for figuring out the programs
  109.      and protocols involved in being a USENET site.
  110.  
  111.   o  "Unix Communications" published by The Waite Group contains a nice
  112.      description of all the pieces (and more) and how they fit together.
  113.  
  114.   o  "Practical Unix Security" published by O'Reilly+Associates has a
  115.      nice discussion of how to secure UUCP in general.
  116.  
  117.   o  "The Internet Complete Reference" from Osborne is a fine reference
  118.      book that explains the various services available on Internet and
  119.      is a great "one-stop-shopping" source for information on news,
  120.      mail, and various other Internet resources.
  121.  
  122.  
  123.   1.6.  Where NOT to look for help
  124.  
  125.   There is nothing "special" about configuring and running USENET news
  126.   under Linux (any more).  Accordingly, you almost certainly do *NOT*
  127.   want to be posting generic news-related questions to the
  128.   comp.os.linux.* newsgroups.
  129.  
  130.   Unless your posting is truly Linux-specific (ie, "please tell me what
  131.   patches are needed to run INN with the bash1.12 in SLS v1.03") you
  132.   should be asking your questions in the newsgroups mentioned above.
  133.   Let me repeat that.
  134.  
  135.   There is virtually no reason to post anything news-related in the
  136.   comp.os.linux hierarchy any more.  There are existing newsgroups in
  137.   the news.*  hierarchy to handle *ALL* your questions.
  138.  
  139.   IF YOU POST TO COMP.OS.LINUX.* FOR NON-LINUX-SPECIFIC QUESTIONS, YOU
  140.   ARE LOOKING IN THE WRONG PLACE FOR HELP.  THE USENET NEWS EXPERTS HANG
  141.   OUT IN THE PLACES INDICATED ABOVE AND GENERALLY DO NOT RUN LINUX.
  142.  
  143.   POSTING TO THE LINUX HIERARCHY FOR NON-LINUX-SPECIFIC QUESTIONS WASTES
  144.   YOUR TIME AND EVERYONE ELSE'S AND IT FREQUENTLY DELAYS YOU FROM
  145.   GETTING THE ANSWER TO YOUR QUESTION.
  146.  
  147.   2.  Hardware Requirements
  148.  
  149.   There are no specific hardware requirements for USENET News under
  150.   Linux.  The only requirement of any type is sufficient disk space to
  151.   hold the software itself, the threads database(s), and the amount of
  152.   news you wish to keep on the system.  Figure on a minimum of 10 MB of
  153.   disk space for starters.
  154.  
  155.  
  156.   3.  Getting USENET News software
  157.  
  158.   All the software referenced in this "HOWTO" is available on the usual
  159.   Internet anonymous ftp sites.
  160.  
  161.   Looking in /news on ftp.uu.net is usually a good way to start.
  162.  
  163.   The newspak-2.2.tar.z distribution contains config files and readme
  164.   files related to building uucp, news, and mail software under Linux
  165.   from the various freely-available sources.  It can usually be found in
  166.   sunsite.unc.edu:/pub/Linux/system/Mail.
  167.  
  168.  
  169.   4.  News Transport Software
  170.  
  171.   There are two main sets of news "transport" software for *nix these
  172.   days, Cnews and INN.  The old "Bnews" has been declared officially
  173.   dead and unsupported by its authors.
  174.  
  175.   News "transport" is defined here to be the software that works behind
  176.   the scenes to post and propagate the news articles as well as making
  177.   the articles available for the newsreaders to access.
  178.  
  179.   You can set your paths to anything you like, as long as UUCP has the
  180.   absolute path to rnews in the Permissions file and as long as you have
  181.   your newsreaders configured so that they can find "inews" and "mail".
  182.  
  183.   Important - you're asking for trouble if you try to intermix Cnews and
  184.   INN.  Pick one or the other.  It's ok to add the NNTP "Reference
  185.   Release" into Cnews since they're intended to play well together.
  186.  
  187.  
  188.   4.1.  Cnews Performance Release
  189.  
  190.   The current de-facto standard news software is Cnews.  It has been
  191.   around for a number of years, I first saw it sometime around 1988.
  192.  
  193.   Cnews's main benefit is its maturity.  It runs on about every *nix you
  194.   can find and there are literally thousands of systems running it
  195.   worldwide.
  196.  
  197.   Its main disadvantage is that it seems to have been intended for uucp-
  198.   over-modem connections between sites and as such requires the addition
  199.   of NNTP software to handle realtime Internet feeds and reading.
  200.  
  201.   In addition, it requires external threading packages for the various
  202.   newsreaders, although the NOV package can now be hooked in to help
  203.   somewhat and it's rumored to have native NOV support in the upcoming
  204.   "cleanup" release.
  205.  
  206.   Regardless, the beginning USENET admin should probably run Cnews first
  207.   since it's so stable, well documented, and has many thousands of
  208.   experienced administrators who can answer questions.
  209.  
  210.   The newspak-2.2.tar.z distribution on sunsite contains working config
  211.   files for Cnews under Linux as well as a couple line patch you'll need
  212.   to make to "doexplode" to get around some problems with bash1.12.
  213.  
  214.  
  215.   4.1.1.  Installing Cnews
  216.  
  217.   Installing the Performance Release of Cnews is absolutely a "rtfm"
  218.   project.  Just grab the sources, extract them, and follow the
  219.   instructions.
  220.  
  221.   The build.def in newspak was generated by running "build" the first
  222.   time and simply looking up the answers by checking out the
  223.   /usr/include files to get the right answers.
  224.  
  225.   When you start the actual compilation, it'll blow up a couple of
  226.   times.  In all cases, you'll need to simply comment out a couple of
  227.   atoi() and atol() macros that gcc doesn't like when your doit.bin
  228.   compilation blows up.
  229.  
  230.   Also, you need the following tiny change to doexplode to get around
  231.   some bash1.12 bugs or else you won't feed anything downstream.i
  232.  
  233.  
  234.           (from Steve Robbins -  steve@nyongwa.cam.org )
  235.  
  236.           if [ ! -f $f ] ; then continue; fi              # add this line
  237.           #       case "$f" in                            # comment me out
  238.           #       "out.master/[0-9]*")    break ;;        # comment me out
  239.           #       esac                                    # comment me out
  240.  
  241.  
  242.   Henry Spencer of Cnews fame says that the code in doexplode that is
  243.   currently causing problems with bash is on the list to be revised in a
  244.   future release.
  245.  
  246.   It is uncertain at this time if the need for this patch goes away if
  247.   you switch to the bash1.13 now available for Linux.  I switched to the
  248.   new bash and libs and left the patch in place and nothing broke (for
  249.   what that's worth :-)
  250.  
  251.  
  252.   4.1.2.  Configuring Cnews
  253.  
  254.   At the very least, you need to edit the following files that all
  255.   should be in /usr/local/lib/news:
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.   active             - the active file
  266.   batchparms         - batch parameters
  267.   explist            - article expiration setup
  268.   mailname           - name in headers for mailed replies
  269.   mailpaths          - path to mail moderated postings to
  270.   organization       - your "org"
  271.   sys                - control what you take and feed
  272.   whoami             - your hostname for the Path: line
  273.  
  274.  
  275.  
  276.  
  277.   4.1.3.  Maintaining a Cnews Site
  278.  
  279.   First, a significant rule of thumb is to not mess with files by hand
  280.   that have utilities that configure them. In particular don't set up
  281.   newsfeeds (run "addfeed" instead) and don't mess with your active file
  282.   (run "addgroup").  When in doubt, read and re-read the docs in the
  283.   source distribution.
  284.  
  285.   Everything else can be done via cron.  My crontab for "news" looks
  286.   like the following:
  287.  
  288.  
  289.           # take the compressed batches that came in from other systems
  290.           20 *       * * * /usenet/sw/news/bin/input/newsrun
  291.  
  292.           # batch 'em up to go out
  293.           0 *        * * * /usenet/sw/news/bin/batch/sendbatches myfeedsite
  294.  
  295.           # expire C-news
  296.           59 0       * * * /usenet/sw/news/bin/expire/doexpire
  297.  
  298.           # monitor stuff and report if needed
  299.           10 5       * * * /usenet/sw/news/bin/newsdaily
  300.           00 5       * * * /usenet/sw/new/bin/newswatch
  301.  
  302.           # turn processing of incoming news batches off 6:30AM - 4:00 PM
  303.           30 6       * * * /usenet/sw/news/bin/input/newsrunning off
  304.           00 16      * * * /usenet/sw/news/bin/input/newsrunning on
  305.  
  306.  
  307.  
  308.  
  309.   4.2.  InterNetNews (INN)
  310.  
  311.   INN is the newcomer on the scene, but it's gaining popularity as it
  312.   matures.  Its main benefit is speed and the fact that it contains an
  313.   integrated nntp package.  Its main drawback is that it's new and that
  314.   it doesn't necessarily install and run flawlessly on the many
  315.   "standard *nixes" yet.  In addition, it operates by having a daemon
  316.   (the innd) always running plus potentially a overchan daemon to do
  317.   threading.  The tradeoff seems to be memory vs. speed.
  318.  
  319.   New USENET admins should probably not try INN until they have
  320.   experience with either B-news or Cnews.  While it's fast and reliable
  321.   under Linux, it's virtually undocumented for the beginning news
  322.   administrator (though in practice it's rather simple to run once you
  323.   figure it out).
  324.  
  325.   INN is very particular about its permissions.  Don't mess with them.
  326.  
  327.   INN is also very particular about having a "quality" TCP/IP to work
  328.   with.  Linux is not necessarily all the way there at this time, so it
  329.   is recommended that you grab a Linux-specific INN distribution from
  330.   one of the usual Linux archive sites.
  331.   4.2.1.  Installing INN
  332.  
  333.   ( from Arjan de Vet - devet@info.win.tue.nl )
  334.  
  335.   I've made a patch + config kit for INN 1.4 to get it to run on Linux.
  336.   It can be found at:
  337.  
  338.   ftp.win.tue.nl:/pub/linux/ports/inn-1.4-linux.tar.gz
  339.  
  340.   INN depends heavily on a good /bin/sh substitute. I use a beta version
  341.   of bash 1.13 that is now available for Linux on the normal archive
  342.   sites.  bash 1.12 gives some small problems with newgroups not being
  343.   handled correctly (maybe some other problems too, I don't remember).
  344.  
  345.  
  346.   4.2.2.  Configuring INN
  347.  
  348.   Basically follow Arjan's instructions and you'll be all set.  Here's
  349.   the summary of what to do:
  350.  
  351.  
  352.   o  In config.data, make sure you have "HAVE_UNIX_DOMAIN DONT"
  353.  
  354.   o  Add the hostname of the system running innd to hosts.nntp For a
  355.      uucp-only site, that's your sitename.
  356.  
  357.   o  Make sure you do not have a line for nntp in /etc/inetd.conf
  358.  
  359.   o  Make sure that you have innshellvars say "HAVE_UUSTAT DO" rather
  360.      than the "DONT" in his example config.data if you have uustat from
  361.      the Taylor UUCP package installed.  If you have this defined wrong,
  362.      it'll result in no outgoing news getting batched.
  363.  
  364.   o  If you run INN, definitely define the recommended syslogd stuff
  365.      because it is very, very helpful.
  366.  
  367.      There is a spectacular (!!!!) FAQ for INN that comes out monthly.
  368.      Look on rtfm.mit.edu for it.  You'll be glad you did.
  369.  
  370.  
  371.   4.2.3.  Maintaining a INN Site
  372.  
  373.   I've found that there's essentially zero care-and-feeding of a Linux
  374.   INN site other than having a working cron.  Basically you want a
  375.   crontab that looks something like the following:
  376.  
  377.  
  378.           # daily maint, also expire the .overview database and articles
  379.           1 0 * * * /usenet/sw/inn/bin/news.daily expireover delayrm < /dev/null
  380.  
  381.           # send 'em out
  382.           5 * * * * /usenet/sw/inn/lib/send-uucp
  383.  
  384.  
  385.  
  386.   ( if you switch to bash1.13, the "< /dev/null" above is not needed )
  387.  
  388.  
  389.   4.3.  Other News Transport Agents
  390.  
  391.   The following is a non-inclusive list of other news transport software
  392.   known to work under Linux:
  393.  
  394.   o  dynafeed
  395.  
  396.  
  397.   o  nntp1.5.11
  398.  
  399.   o  slurp1.05
  400.  
  401.  
  402.   5.  News Readers
  403.  
  404.   There is no "one true newsreader".  As a result, there are many well-
  405.   known newsreaders that port easily to Linux in particular.  At this
  406.   writing, "tin", "trn", and "nn" are in most of the commonly available
  407.   distributions of Linux and in.
  408.  
  409.   When picking a newsreader, you basically want to find something that
  410.   is easy to use, very configurable by the user, with threading and kill
  411.   files (to select interesting articles or make the non-interesting ones
  412.   not appear at all).
  413.  
  414.   You can set your paths to anything you like as long as all the
  415.   newsreaders can find "inews" from your Cnews or INN installation and a
  416.   "mail" program to send mail replies to posts.
  417.  
  418.   This section will talk briefly about several of the most popular ones.
  419.   Before you ask, I use "nn" for lots of reasons :-)
  420.  
  421.  
  422.   5.1.  Tin
  423.  
  424.   Tin is a threaded newsreader generally intended to be easy for new
  425.   users.  It supports kill files and NOV threading.  If you're running
  426.   INN, it will read NOV .overview files by default and not write index
  427.   files.
  428.  
  429.   To compile Tin under linux, basically just edit the makefile to set
  430.   the locations of the software (especially the location of inews) and
  431.   type "make linux".  There are no patches required for tin under Linux.
  432.  
  433.   For threading, you can basically just say "tin -u" to update the index
  434.   files.
  435.  
  436.   To enable the ability to read via NNTP, compile with "NNTP_ABLE"
  437.   defined.  This will result in a file called "tin" for local and one
  438.   called "rtin" for NNTP reading.  "tin -r" will also get the same
  439.   behavior as "rtin".
  440.  
  441.   Iain Lea recommends the following crontab entry and says that you need
  442.   to do a "make daemon" to make tind.
  443.  
  444.  
  445.           # thread the database
  446.           35 * * * * /usenet/bin/tind -u
  447.  
  448.  
  449.  
  450.   I've run tin over a SLIP link as a NNTP-based newsreader.  If you're
  451.   connecting to a system that has a full newsfeed, you will grow
  452.   extremely old waiting for it to load up the "active" file.
  453.  
  454.  
  455.   5.2.  Trn/Mthreads
  456.  
  457.   trn is a threaded derivative of the "rn" newsreader.  trn3.2 and newer
  458.   has the nice ability to select either the "mthreads" (trn's threading
  459.   package) or NOV (threader from INN) threading.
  460.  
  461.   To compile it, just run Configure and take the calculated defaults.
  462.   You might need to have lib4.4.1 and bash-1.13 (there is a beta now
  463.   available on the various Linux archive sites) to successfully run
  464.   Configure.  You'll probably need both bash1.13 and libs4.4.1 to get
  465.   the new Configure to run properly.
  466.  
  467.   The newspak-2.2.tar.z distribution on sunsite contains working config
  468.   files for trn under Linux.
  469.  
  470.   It's probably unwise to try to edit a trn config.sh by hand unless
  471.   you're doing something *VERY* simple like changing the paths to fit
  472.   your tastes.  If you do so, you'll need to run "Configure -S" before
  473.   you "make depend", "make", and "make install".
  474.  
  475.   Although "Configure" fails generally under Linux with bash1.12,
  476.   "Configure -S" work fine so if you take the newspak config.sh as a
  477.   starting point, you'll be very close.
  478.  
  479.   Compiling for NNTP reading is as simple as answering "yes" when
  480.   Configure asks you if you want to do so (assuming Configure runs ok on
  481.   your system).  A future release of newspak will include a config.sh
  482.   for NNTP reading as well as the existing one for local reading for
  483.   those of us who are still "bash-impaired" :-)
  484.  
  485.   I've run trn over a SLIP link as a NNTP-based newsreader.  If you're
  486.   connecting to a system that has a full newsfeed, you will grow
  487.   extremely old waiting for it to load up the "active" file and to
  488.   thread the articles.
  489.  
  490.   There are dozens of command line switches for trn to get all kinds of
  491.   behavior.  Read the "trn" man page for details.  I use a nice feature
  492.   to set all the switches easily:
  493.  
  494.  
  495.   o  make a file with all the settings in a file called  /.trnrc
  496.  
  497.   o  export TRNINIT=" /.trnrc"
  498.  
  499.   The current newspak has a copy of my .trnrc file as an example.
  500.  
  501.   trn3.2 and above has support for NOV or mthreads threading that's
  502.   user-selectable.  Accordingly, I recommend building the software to
  503.   allow both threading mechanisms (it's a question in Configure).  To
  504.   pick one at runtime, try "trn -Zo" for NOV and "trn -Zt" for mthreads.
  505.  
  506.   To build the mthreads database, do something like the following in the
  507.   "news" crontab:
  508.  
  509.  
  510.           # thread the trn database
  511.           35 * * * * /usenet/bin/mthreads all
  512.  
  513.  
  514.  
  515.   5.3.  NN
  516.  
  517.   The newspak-2.2.tar.z distribution on sunsite contains working config
  518.   files for nn6.4.18 that you can drop into place and type "make" under
  519.   Linux. They also work with the 6.5b3 beta of the coming nn6.5 update.
  520.  
  521.   When you're done compiling, you need to do the following:
  522.  
  523.   o  - run the "inst" program to install things.  (install everything)
  524.  
  525.   o  - initialize the database
  526.  
  527.   o  - fire up nnmaster
  528.  
  529.   See the nn docs for details.  Compiling, configuring, and running nn
  530.   under Linux is no different than running nn on any other *nix with the
  531.   exception that you may want to run nnmaster as a cron entry rather
  532.   than as a daemon.  If you run it as a daemon under linux, it may not
  533.   tend to wake up properly (the net effect of running it from cron is
  534.   the same anyway).
  535.  
  536.   Support of "nn" is as simple as the following crontab entries:
  537.  
  538.           # run nnmaster to collect "nn" stuff
  539.           25 * * * * /usenet/sw/nn/lib/nnmaster
  540.  
  541.           # expire the nn database
  542.           0  4       * * * /usenet/sw/nn/bin/nnadmin =EYW
  543.  
  544.           # stash a copy of the active file for "nngoback" and keep last 7
  545.           0 3 * * * /usenet/sw/nn/lib/back_act 7
  546.  
  547.  
  548.  
  549.   I've experimented a little with running nn as a NNTP-based newsreader
  550.   over a SLIP connection.  In this case, you'll want to edit the
  551.   config.h file slightly.  See the comments in the file for details.
  552.   When running as a NNTP-based reader, nn runs a local copy of nnmaster
  553.   to keep the threads database on the local system so that article
  554.   selection is very fast (although you of course wait for the arcticle
  555.   text a little if you're running SLIP over a modem).
  556.  
  557.  
  558.   5.4.  Other newsreaders
  559.  
  560.   The following is a non-inclusive list of newsreaders said to install
  561.   and run under Linux:
  562.  
  563.   o  tass
  564.  
  565.   o  xrn
  566.  
  567.   o  gnus
  568.  
  569.  
  570.   6.  Acknowledgements
  571.  
  572.  
  573.   The following people have helped in the assembly of the information
  574.   (and experience) that helped make this document possible:
  575.  
  576.   Ed Carp, Steve Robbins, Ian Taylor, Greg Naber, Matt Welsh, Iain Lea,
  577.   Arjan de Vet
  578.  
  579.   If I forgot anybody, my apologies.
  580.  
  581.  
  582.   7.  Frequently Asked Questions about USENET (in c.o.l.* anyway)
  583.  
  584.  
  585.  
  586.   7.1.  Why can't I post to moderated groups ?
  587.  
  588.   Probably because the newsreader is trying to call /bin/mail to send
  589.   the mail and it doesn't like it.  Replace the /bin/mail in SLS with
  590.   the port of mailx-5.3b.tar.z from the pub/Linux/system/Mail dir on
  591.   sunsite.unc.edu and make it mode 2755 and group mail (like "elm") and
  592.   you'll be all set.
  593.  
  594.  
  595.   Another possibility is that you have a moderated newsgroup set up on
  596.   your local system as not-moderated and somebody upstream is quietly
  597.   deleting the article (some system's software, not a person).  Make
  598.   sure you run a "checkgroups" every now and then when the checkgroups
  599.   article rolls by in news.admin every few weeks.
  600.  
  601.  
  602.   7.2.  Why do I have problems that appear to be permission-related ?
  603.  
  604.   Because they are :-)
  605.  
  606.   Check to see that your permissions are right and that you have a
  607.   "news" username and group in /etc/passwd and /etc/group that matches
  608.   the binary distribution you grabbed.  It seems that there is not yet a
  609.   Linux-standard for commonly available accounts.
  610.  
  611.   All the stuff in /usr/local/lib/news should be news.news except
  612.   /usr/local/lib/news/setnewsids which should be setuid root.
  613.  
  614.   You can use whatever UID and GID you want for "news".
  615.  
  616.  
  617.   7.3.  Why can I post articles locally, but they don't get fed down-
  618.   stream ?
  619.  
  620.   Probably because you didn't call newsrun from cron.  Maybe because you
  621.   edited your sys file and messed it up.  Maybe because you don't have a
  622.   /usr/spool/news/out.going tree or something.
  623.  
  624.   Do not create newsgroups or feeds by editing the active or sys files.
  625.   Use the utilities in /usr/local/lib/news/bin/maint to do it.
  626.  
  627.  
  628.   7.4.  Why doesn't my binary distribution have the "Performance
  629.   Release" of C-news?
  630.  
  631.   Because it's optional.  Because it has problems under Linux in some
  632.   places.  Because the Pre-Performance Release Cnews is more stable and
  633.   plenty fast enough on any type of reasonable system (IMHO). If you
  634.   need any more convincing, here's a few excerpts from the C-news
  635.   README.new file:
  636.  
  637.   "This is the 20 Feb 1993 Performance Release of C News, a minor update
  638.   to the 2 May 1992 P.R. that just fixes some installation problems and
  639.   a couple of annoying bugs"
  640.  
  641.   "This release is more or less a halfway step to what we've been
  642.   calling the "cleanup release""
  643.  
  644.   "People who are happy with the older C News might want to wait for the
  645.   cleanup release, which is still coming although behind schedule"
  646.  
  647.   Mainly because at the time SLS1.01 came out, the compilers and libs
  648.   didn't like the Performance Release too much.  Things are better now.
  649.  
  650.  
  651.   7.5.  Why doesn't my binary distribution have nntp ?
  652.  
  653.   Because it's supposed to be plug-n-play under Linux and because I
  654.   didn't want to make SLS's news stuff doubly big by having to maintain
  655.   both nntp and non-nntp versions of the newsreaders and news transport
  656.   programs.  Also because it compiles in localized information that is
  657.   not overridable at runtime via a config file.
  658.  
  659.  
  660.  
  661.   7.6.  Why does doexpire (or relaynews or) say "severe space shortage"
  662.   when there's lots of room ?
  663.  
  664.   Because it can't read /etc/mtab.  Make it mode 644.  This happens when
  665.   you unmount a mounted filesystem by root with a umask that doesn't
  666.   permit world-read of files owned by root.
  667.  
  668.  
  669.   7.7.  Why does everything look normal, but posting doesn't happen ?
  670.  
  671.   Older versions of Linux had a "broken" sed that Cnews was prone to
  672.   blow up.  In particular, if you've installed over an old SLS, be sure
  673.   to check /bin and /usr/bin to be certain you have only one copy of sed
  674.   and that it's a modern one.
  675.  
  676.   If you're running the "Performance Release" of Cnews, posting runs
  677.   from cron which suprises some people.
  678.  
  679.  
  680.   7.8.  the various independent thread databases ?  Can I hook the new
  681.   news overview (NOV) stuff into trn/tin/nn to replace
  682.  
  683.   Yes. trn, tin, and the beta of nn support it now.
  684.  
  685.   You can hook it into the Performance Release of Cnews and various
  686.   other readers as well.
  687.  
  688.   The beta copy of nn6.5 I have here has NOV support and it works just
  689.   dandy under Linux.  I run it here and have nn running without having
  690.   to run nnmaster (!).  Look on uniwa.uwa.edu.au for a copy of it.
  691.  
  692.  
  693.   7.9.  Why can't we have a binary distribution of NNTP ?
  694.  
  695.   Because significant local-only information is compiled-in and cannot
  696.   be determined auto-magically at runtime.
  697.  
  698.  
  699.   7.10.  storing any news articles or databases locally.  How do I set
  700.   up NNTP to allow read/post across the network while *not*
  701.  
  702.   ( mdw@sunsite.unc.edu (Matt Welsh) )
  703.  
  704.   o  1) Grab the "reference implementation" of nntp and a copy or rn
  705.      from your local archive site.  If you connect to ftp.uu.net you'd
  706.      grab:
  707.  
  708.      nntp.1.5.11.tar.Z from ftp.uu.net:/news/nntp
  709.  
  710.   o  2) compile nntp as follows:
  711.  
  712.      copy common/conf.h.dist to common/conf.h.
  713.  
  714.      Edit common/conf.h to set certain options: The only ones I set
  715.      were:
  716.  
  717.      DOMAIN: undefine it (i.e. change the line to #undef DOMAIN).
  718.  
  719.      REALDOMAIN: Define this. It looks up the domain using the
  720.      libraries.
  721.  
  722.      SERVER_FILE: Set this to the name of the file which will contain
  723.      the hostname of the news server (i.e. the machine you'll read and
  724.      post news through). I use "/usr/local/lib/news/server".
  725.  
  726.      PASSFILE: If your news server requires authorization (i.e.  some
  727.      kind of username/password) to post, set this to the name of the
  728.      file which contains the username and password (described below).  I
  729.      use "/usr/local/lib/news/nntppass".
  730.  
  731.      I decided to keep all of the other news stuff in
  732.      /usr/local/lib/news.  So I set all of the rest of the pathnames in
  733.      the file (i.e.  ACTIVE_FILE, NEWSGROUPS_FILE, etc.) to use
  734.      /usr/local/lib/news.  Many of these files are only used by the NNTP
  735.      server, not the client, but to be safe I changed them all to point
  736.      to the right directory. You can of course use the default
  737.      pathnames; just make sure you create the directory accordingly.
  738.  
  739.      3) Create the user "usenet" if you haven't already. The inews
  740.      program runs as this user. All you need is a userid; you don't need
  741.      a home directory or shell or anything for the user. Just plop the
  742.      following line into your /etc/passwd:
  743.  
  744.                                      usenet:*:13:1::/:
  745.  
  746.  
  747.   Make sure you set the userid ("13", above) to something unique. The
  748.   group can be anything; I use "daemon" (gid 1).
  749.  
  750.   o  4) Create the SERVER_FILE, above. For example, my news server is
  751.      "wonton.tc.cornell.edu", so I created the file
  752.      /usr/local/lib/news/server which contained one line:
  753.  
  754.                       wonton.tc.cornell.edu
  755.  
  756.  
  757.  
  758.   o  5) Create the PASSFILE. This file contains lines of the form
  759.  
  760.                      <server name> <username> <password>
  761.  
  762.  
  763.   Let's say that your news server (the one in SERVER_FILE, above) is
  764.   "shoop.vpizza.com", and to post on that machine you need to be autho-
  765.   rized as the user "news" with a password of "floof". Thus, in the
  766.   PASSFILE (I use /usr/local/lib/news/nntppass), you need the line
  767.  
  768.                   shoop.vpizza.com news floof
  769.  
  770.  
  771.  
  772.   o  6) Make this file secure! The inews program runs as the user
  773.      "usenet", so make this news directory owned by that user and the
  774.      nntppass file as well.
  775.  
  776.              chown usenet /usr/local/lib/news
  777.              chmod 755 /usr/local/lib/news
  778.              chown usenet /usr/local/lib/news/nntppass
  779.              chmod 600 /usr/local/lib/news/nntppass
  780.  
  781.  
  782.   So nobody else can read this file. No, the passwords in it are not
  783.   encrypted.
  784.  
  785.   o  7) Go back to the nntp.1.5.11 source directory; issue "make
  786.      client".  At this point you'll build the NNTP version of inews,
  787.      which is the only software used by the NNTP client.
  788.  
  789.      When I built inews, there was a bug in the library which caused the
  790.      function uname() in uname.c to call itself eternally. This should
  791.      be gone now; however, if inews seems to hang and your system starts
  792.      slowing down *a lot* you should rename the function "uname()" in
  793.      uname.c to something like "my_uname()", and change the calls to it
  794.      (in inews.c) to call my_uname() instead. Mail me if you run into
  795.      this problem.
  796.  
  797.                      (VDS note - this means mail to Matt-not me :-) )
  798.  
  799.  
  800.  
  801.   o  8) Issue "make install_client". This will install the inews stuff.
  802.      Also link /usr/local/lib/news/inews to /usr/local/bin/inews
  803.  
  804.      Now you should be able to happily post (by hand). Try something
  805.      like the following:
  806.  
  807.                      $ inews -h << EOF
  808.                      Newsgroups: misc.test
  809.                      From: me@foo.bar.com
  810.                      Subject: Testing
  811.                      Reply-To: my-real-address@wherever.edu
  812.  
  813.                      This is a test.
  814.                      EOF
  815.  
  816.  
  817.   If this works, inews should post the article. You'll know because
  818.   test-responders on misc.test will reply to the address on the Reply-To
  819.   line, above. Please don't do test postings on real groups, like c.o.l.
  820.   :)
  821.